package cn.xuewenbao.ucenter.service;

import cn.xuewenbao.ucenter.entity.BlackList;
import cn.xuewenbao.ucenter.entity.vo.BlackUserVo;
import cn.xuewenbao.ucenter.entity.vo.BlackVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;

import java.util.List;

/**
 * <p>
 * 黑名单 服务类
 * </p>
 *
 * @author mafayu
 * @since 2021-06-08
 */
public interface BlackListService extends IService<BlackList> {

    //拉黑某用户
    Result<Boolean> addBlack(BlackVo blackVo);

    //获取黑名单列表
    Result<List<BlackUserVo>> getBlackList(String userId);

    Result<Boolean> removeBlack(BlackVo blackVo);
}
